package cn.yangliu.nacos.gateway.model;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * The interface Oauth 2 token info.
 *
 * @author 问道于盲
 * @date 2019 -12-14
 */
@Data
public class Oauth2TokenInfo implements Serializable {

    /**
     * current class's static member
     * The constant serialVersionUID.
     */
    private static final long serialVersionUID = 622615090658786242L;
    /**
     * scope : ["all"]
     * active : true
     * exp : 1576302181
     * jti : 40286888-f000-47fc-9bcd-4c0df50091da
     * client_id : admin
     */
    private List<String> scope;

    /**
     * current class instance's member.
     * The Active.
     */
    private boolean active;

    /**
     * current class instance's member.
     * The Exp.
     */
    private long exp;

    /**
     * current class instance's member.
     * The Jti.
     */
    private String jti;

    /**
     * current class instance's member.
     * The Client id.
     */
    @JsonProperty("client_id")
    private String clientId;


}
